package com.hongliang.advantage;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author Hongliang Zhu
 * @create 2022-12-04 13:04
 */
public class OioServer {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(9999, 2);
        Socket accept = serverSocket.accept();
        System.out.println(accept);
        System.in.read();
    }
}
